﻿using System;
using System.Text;

namespace BizElements.Core.ProviderComponents
{
    /// <summary>Renders column name and alias.</summary>
    public interface IColumnRenderer
    {
        /// <summary>Renders column name.</summary>
        /// <param name="column">Column to render.</param>
        /// <param name="output">StringBuilder to which column name is appended.</param>
        void RenderColumnName(IDbColumn column, StringBuilder output);

        /// <summary>Renders column alias.</summary>
        /// <param name="column">Column to render.</param>
        /// <param name="output">StringBuilder to which the alias is appended.</param>
        void RenderAlias(IDbColumn column, StringBuilder output);
    }    
}